function checkUser() {
    if(localStorage.userInfo) {
        var userInfo = JSON.parse(localStorage.userInfo);
        
        userInfo.login = true;
        
        var userName = userInfo.userName;
        var id = userInfo.id;

        var maxScore = userInfo.scoreMax;
        var minTime = userInfo.timeMin;
        var minTimeStandard = (Number(minTime)/60).toFixed(2);

        $("#my-score").html(maxScore);
        $("#my-time").html(minTimeStandard);

        $("#username").removeClass("hidden");
        $("#login").removeClass("hidden").addClass("hidden");
        $("#logout").removeClass("hidden");

        renderUserInfo();
    }
}